package jUnitTest;

import static org.junit.Assert.*;

import org.junit.Test;
import org.orm.PersistentException;

import ws.combustibleSOAP;

public class TestCombustibleSOAP {

	@Test
	public void testReadProbabilidad() throws PersistentException {
		ws.combustibleSOAP combustible = new ws.combustibleSOAP();
		double expected;
		double actual;
		int delta = 12;
		double precio = 520;
		expected = 0.46369138138645;
		actual = combustible.readProbabilidad(precio);
		System.out.print(actual);
		assertEquals(expected, actual,delta);
	}
	@Test
	public void testReadLog() throws PersistentException{
		combustibleSOAP combustile = new combustibleSOAP();
		System.out.print("Prueba de Log : "+ combustile.readLog());
	}

}
